package org.example.onlineEducation.service;

import org.example.onlineEducation.dao.RoleDao;
import org.example.onlineEducation.entity.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleService {

    @Autowired
    private RoleDao dao;

    public List<Role> selectAll(){
        return dao.selectAll();
    }
}
